Create a refresh for cost target history.
POSThttps://app.nops.io/c/cost_page/cost_target/:id/refresh_history/
Refresh cost target planning history for a given date range
Request
Path Parameters
id integerrequired
A unique integer value identifying this cost target.
- application/json
Body
required
start_date date
Start date for refresh (YYYY-MM-DD)
end_date date
End date for refresh (YYYY-MM-DD)
Responses
- 200
- 400
- 404
Successfully initiated refresh
- application/json
- Schema
- response
Schema
any
{
"status": "ok"
}
Invalid date format
Cost target not found
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://app.nops.io/c/cost_page/cost_target/:id/refresh_history/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-nops-api-key: <API_KEY_VALUE>' \
-d '{
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}'
ResponseClear